#include "head.h"
#include "common/log_manager.h"

#define add_default(a) add(a, 10)

int add(int a, int b) {
    return a + b;
}

#define MODULE_NAME "MY_LIBS"
 
#define error_printf(fmt,...) printf("[ERROR]["MODULE_NAME"](%s|%d)"fmt,__func__,__LINE__,##__VA_ARGS__)

void getNowTime(char *time_str, int size) {
	time_t now = time(NULL);
	strftime(time_str, size, "%Y-%m-%d %H:%M:%S", localtime(&now));
}

int main() {
    // if (log_fp == NULL) {
    //     log_fp = fopen("~/.log/slaveInfo.log", "a+");
    //     if (!log_fp) {
    //         perror("fopen");

    //         exit(1);
    //     }
    // }
    LOG_MANAGE(LOG_ERROR, "%s\n", "get news failed");
    LOG_MANAGE(LOG_EVENT, "%s\n", "get news failed2");

    return 0;
}

